package com.triones.api.controller.api;

import cn.dev33.satoken.annotation.SaIgnore;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.triones.api.entity.bo.KycVerifyBO;
import com.triones.api.entity.bo.PhotonPayFileUploadBO;
import com.triones.api.service.third.ApiThirdCommonService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * api - 对接第三方工具接口
 *
 * @Author: triones
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/third")
public class ApiThirdCommonController extends BaseController {

    private final ApiThirdCommonService apiThirdCommonService;

    /**
     * 文件上传
     * @return
     */
    @PostMapping("/php/fileUpload")
    @SaIgnore
    public R<String> photonPayFileUpload(PhotonPayFileUploadBO bo) throws IOException  {
        return R.ok("上传成功",apiThirdCommonService.photonPayFileUpload(bo));
    }
}
